package com.dao;

import java.sql.SQLException;
import java.util.List;

import com.entity.School;
import com.tools.Page;

public interface ISchoolDao extends IBaseDao{

	/**
	 * 存储学校
	 * @param school
	 * @return
	 */
	boolean save(School school) throws SQLException;

	/**
	 * 修改学校
	 * @param school
	 * @return
	 */
	boolean update(School school) throws SQLException;

	/**
	 * 查看一个学校
	 * @param school
	 * @return
	 */
	School findById(String id) throws SQLException;

	/**
	 * 分页查看所有学校
	 * @param school
	 * @return
	 */
	List<School> getList(Page page) throws SQLException;

	/**
	 * 统计记录数
	 * @param school
	 * @return
	 */
	long count() throws SQLException;

}